package com.googlecode.biz;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.googlecode.allinclusive.fw.database.dao.QueryDAO;
import com.googlecode.allinclusive.fw.valueobject.UserObject;
import com.googlecode.entity.SalesEntity;

public class Z1000BizImpl implements Z1000Biz {
	
	@Autowired
	QueryDAO queryDAO;

	public UserObject login(String shinryojoId, String riyoshaId) {
		
		UserObject uo = new UserObject();
		uo.setUserId(shinryojoId);
		uo.setPassword(riyoshaId);
		
		return uo;
		
	}
	
	public List<SalesEntity> selectSales() {
		return queryDAO.executeForObjectList("sales.select", new HashMap<String, Object>());
	}
	
	

}
